﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL.SysManage
{
  public  class T_SYS_LOG
    {
      private readonly DALL.SysManage.T_SYS_LOG dal = new DALL.SysManage.T_SYS_LOG();
        public T_SYS_LOG()
        { }
        #region  Method

        /// <summary>
        /// 得到最大ID
        /// </summary>
        public int GetMaxId()
        {
            return dal.GetMaxId();
        }

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(decimal LOGID)
        {
            return dal.Exists(LOGID);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(Model.SysManage.T_SYS_LOG model)
        {
            model.LOGID = GetMaxId();
            dal.Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public void Update(Model.SysManage.T_SYS_LOG model)
        {
            dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(decimal LOGID)
        {

            dal.Delete(LOGID);
        }
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //public bool DeleteList(string LOGIDlist )
        //{
        //return dal.DeleteList(LOGIDlist );
        //}

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.SysManage.T_SYS_LOG GetModel(decimal LOGID)
        {

            return dal.GetModel(LOGID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
    

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetAllList()
        {
            return GetList("");
        }

        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  Method
    }
}
